package com.e0box.game.event
{
	import flash.events.Event;
	
	public class SoundEvent extends Event
	{
		/**
		 * when method play was finished
		 */		
		public static const ON_PLAY_COMPLETE:String = "onPlayComplete";
		/**
		 * when method loopIn was finished
		 */		
		public static const ON_LOOP_FINISH:String = "onLoopFinish";
		/**
		 * when method loop was continue
		 */		
		public static const ON_LOOPING:String = "onLooping";
		
		/**
		 * key of sfx value's tag(id)
		 */		
		public var key:String;
		public function SoundEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		override public function clone():Event{
			var tmp:SoundEvent = new SoundEvent(this.type,this.bubbles,this.cancelable);
			tmp.key = this.key;
			return tmp;
		}
	}
}